<%@ page language="java" import="java.util.*,com.ncp.model.entity.cart.*,com.ncp.model.entity.order.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>确认支付信息</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<!-- 控制只有登录后才能访问该页面 -->
	
	<link href="css/common.css" type="text/css" rel="stylesheet" />
	<link href="css/list.css" type="text/css" rel="stylesheet" />
	<link href="css/sure.css" type="text/css" rel="stylesheet" />
	<link rel="stylesheet" type="text/css" href="css/cart.css">
	<%@ include file="../common/checklogin.jsp"%>
	
	<%
		String ordermessage = (String)request.getAttribute("ordermessage");
		OrderBasic orderBasicBean = (OrderBasic)request.getAttribute("orderBasic");
		List<OrderDetail> list1 = (ArrayList<OrderDetail>)request.getAttribute("list1");
	%>
  </head>
  
  <body>
  <div id="allpage">
	<jsp:include flush="true" page="../index/head.jsp"></jsp:include>
	<div id="main" style="padding:0 20px;width:938px; line-height:24px;">
	    <p style="font-weight:bold;border-top:1px solid #DDD; padding:10px 0 0;"><%=ordermessage %></p>
	    <p style="color:red;">订单信息</p>
	    <p style="padding-left:20px;">订单编号：<%=orderBasicBean.getOrderID() %></p>
	    <p style="padding-left:20px;">下单时间：<%=orderBasicBean.getOrderTime() %></p>
	    <p style="padding-left:20px;">付款方式：<%=orderBasicBean.getPaymentType() %></p>
	  <%--<p style="color:red;border-top:1px solid #DDD; padding:10px 0 0;">收货人信息</p>
	    <p style="padding-left:20px;">姓名：<%=orderBasicBean.getReceiverName() %></p>
	    <p style="padding-left:20px;">地址：<%=orderBasicBean.getReceiverAddress() %></p>
	    <p style="padding-left:20px;">邮编：<%=orderBasicBean.getReceiverZip() %></p>
	    <p style="padding-left:20px;">固定电话：<%=orderBasicBean.getReceiverPhone() %></p>
	    <p style="padding-left:20px;">手机号码：<%=orderBasicBean.getReceiverMobile() %></p>
	    <p style="padding-left:20px;">邮箱：<%=orderBasicBean.getReceiverEMail() %></p>
	    --%><p style="color:red;border-top:1px solid #DDD; padding:10px 0 0;">商品详细信息</p>
	    <%
	    	for(int i = 0; i<list1.size(); i++){
	    		OrderDetail orderDetailBean = (OrderDetail)list1.get(i);
	    		%>
	    			<p style="padding-left:20px;">商品编号：<%=orderDetailBean.getProductID() %></p>
	    			<p style="padding-left:20px;">单价：<%=orderDetailBean.getProductPrice() %></p>
	    			<p style="padding-left:20px;">数量：<%=orderDetailBean.getProductNumber() %></p><hr/>
	    		<%
	    	}
	    %>
	    <p style="color:blue;">订单状态：<%=orderBasicBean.getOrderStatus() %></p>
	    <form name="confirmorder" action="ConfirmPaymentServlet?orderid=<%=orderBasicBean.getOrderID() %>" method="post" onsubmit="">
	    	<input type="submit" value="" style="width:100px; cursor:pointer; height:25px; background:url(images/100x25.png);" />
	    </form>
	</div>
	<div id="slice"></div>
	<jsp:include flush="true" page="../index/foot.jsp"></jsp:include>
	</div>
  </body>
</html>
